// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'BadnessTypeId',
        footer: "Foots",
        cnName: '不良类型表',
        name: 'badnesstypemodel',
        url: "/badnesstypemodel/",
        sortName: "BadnessTypeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BadnessTypeCode":"","BadnessTypeName":"","BadnessTypeRemarks":""};
    const editFormOptions = [[{"title":"编码","field":"BadnessTypeCode","type":"text"}],
                              [{"title":"不良类型名称","field":"BadnessTypeName","type":"text"}],
                              [{"title":"不良类型备注","field":"BadnessTypeRemarks","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'BadnessTypeId',title:'不良类型id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BadnessTypeCode',title:'编码',type:'string',width:120,align:'left',sort:true},
                       {field:'BadnessTypeName',title:'不良类型名称',type:'string',width:120,align:'left'},
                       {field:'BadnessTypeRemarks',title:'不良类型备注',type:'string',width:180,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:120,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}